# 给定一个排序的整数数组，和一个要查找的目标整数target，查找到target第一次出现的下标，如果不存在，返回-1

def search_num(number_list, target):
    try:
        idx = number_list.index(target)
        return idx
    except ValueError:
        return -1


if __name__ == '__main__':
    numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    print(search_num(numbers, 41))
